:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
    --body-height: 55svh;
    --body-width: 50svw;
    --body-height-img: 55svh;
    --body-text-height: calc(var(--body-height) * 0.6 );
    --body-i-size: calc(var(--body-height) - var(--body-text-height) - 10px);
    --body-fontsize:0.01rem;

    --body-font-size: calc(1.3rem + var(--body-fontsize));
    --body-font-size-big: calc(1.6rem + var(--body-fontsize));

    --content-padding:4rem 8rem;
    --body-padding-img：4rem;
}
/*横屏*/
@media only screen and (orientation: landscape) and (max-height: 600px) {
    body {
        --body-height: 50svh;
    }
}
/*竖屏*/
@media only screen and (orientation: portrait)  {
    body {
        --body-height: 40svh;
        --body-height-img: 50svh;
        --body-width:50svh;
        --content-padding:0rem;
        --body-font-size:.8rem;
        --body-font-size-big:1rem;
        --body-padding-img:0rem;
    }
}

body {
    width: 100%;
    height: 100%;
    margin: 0px;
    background-color: var(--dark);
    font-family: var(--font-family-sans-serif);    
    /*   */
    animation-duration: .8s;
}


/* 顶部导航栏 谷歌*/
.main {
    width: 100%;
    height: 100%;
    /* 溢出y轴保留滚动条，x轴隐藏滚动条 */
    overflow-y: scroll;
    scroll-behavior: smooth;
    /* 放在父级上，沿着y轴滑动  */
    scroll-snap-type: y mandatory;
    /*隐藏滚动条 兼容ie.火狐*/
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE 10+ */
}

/* 隐藏滚动条 */
.main::-webkit-scrollbar {
    display: none;
}

.page {
    /* display: flex; */
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--body-width));
    flex-wrap: wrap;
    /* flex-direction: column; */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100svh;
    color: var(--light);

    /* 放在子元素上，和上面那个父元素一伙的 */
    scroll-snap-align: center;
}
.page > *{
    flex: 1;
}
/*内容介绍*/
.content{
    padding: var(--content-padding);
    text-align: left;
    height: var(--body-height);
    font-size: var(--body-font-size-big);
    line-height: calc(1rem + var(--body-font-size-big));
}
.tag,.tag2,.tag3{
    line-height: 3rem;
    padding: 0px 10px 3px 10px;
    background-color: var(--cyan);
    border-radius:6px;
    margin: 5px;
    margin-left: 0px;
}
.tag2{
    --cyan:var(--orange);
}
.tag3{
    --cyan:var(--success);
}
.imgs{
    height: var(--body-height-img);
    padding-right:var(--body-padding-img);
}
.imgs img{
    height: 100%;
    width:100%;
    object-fit:scale-down;
}
.code{
    width: 80%;
    padding: 1rem;
    background-color: var(--gray);
    font-size: var(--body-font-size);
    line-height: calc(.5rem + var(--body-font-size-big));
    margin-top: 1rem;
    border-radius:6px;
    font-family: var(--font-family-monospace);   
}
/*右侧导航↓*/
.navbar {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    display: none;
  }
  
  .navbar li {
    list-style: none;
    margin: 0 1rem;
    padding: 1rem;
  }
  
  .navbar li a {
    text-decoration: none;
    text-transform: uppercase;
    color:var(--light);
  }
  
  .navbar li a:hover {
    color: var(--teal);
  }
  
/*右侧导航↑*/